import { uiwu } from "@/api/interface/interface"

/** 营收统计 **/
export const userRevenueStatApi = async(data):  Promise<any> => {
    return await uiwu.get({
        url: 'fans/userRevenueStatistics?page=' + data.page + '&limit=' + data.limit + '&type=' + data.type
    })
}

/** 营收总计 **/
export const userRevenueStatsInfoApi = async(): Promise<any> => {
    return await uiwu.get({
        url: 'fans/userRevenueStatisticsInfo'
    })
}

/** 营收明细 **/
export const userMxListApi = async(data): Promise<any> => {
    return await uiwu.get({
        url: 'fans/userRevenueList?page=' + data.page + '&limit=' + data.limit + '&type=' + data.type + '&start=' + data.start + '&end=' + data.end + '&pay_type=' + data.pay_type
    })
}

/** 营收明细详情 **/
export const userRevDetailApi = async(data: number): Promise<any> => {
    return await uiwu.get({
        url: 'fans/userRevenueDetail/' + data
    })
}
